﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace DataBaseHelper
{
    interface IDataBase<T> 
    {
        /// <summary>
        /// 执行查询语句
        /// </summary>
        /// <param name="queryString">查询语句</param>
        /// <returns>List</returns>
        List<T> ExecuteQuery(string queryString);
        /// <summary>
        /// 执行查询语句
        /// </summary>
        /// <param name="queryString">查询语句</param>
        /// <returns>Dataset</returns>
        //DataSet ExecuteQuery(string queryString);

        /// <summary>
        /// 执行更新操作
        /// </summary>
        /// <param name="queryString"></param>
        /// <returns></returns>
        bool ExecuteUpdate(string queryString);


    }
}
